package com.xry.mapper;

import com.xry.bean.Order;
import com.xry.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDao {

    int add(@Param("param") Order order);

    int del(@Param("id") Integer id);

    int edit(@Param("param") Order order);

    List<Order> all(@Param("param") Order order);

    Order one(@Param("id") Integer id);

    int pageCount(@Param("param") Order order);

    List<Order> page(@Param("page") Page page, @Param("param") Order order);

    List<Map<String, Integer>> countByDate();

    List<Map<String, Integer>> countAmount();


}
